Fix error case in filesystem model
authorBenjamin Otte <otte@redhat.com>
Mon, 29 Mar 2010 14:26:14 +0000 (16:26 +0200)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 4 Apr 2010 00:59:25 +0000 (20:59 -0400)
commit80efec2a8ca4c17bde8a04bd65f776fd6119db2a
treef269396dc068b6d5e958f07d75123812d6adff9c
parent9441d966206d78bbd67da0bb73d2c8db64d52e33
Fix error case in filesystem model

We should not unref the model here, it might not even exist anymore.
Instead check if it exists and only use it if it does.
The unref was leftover from a previous fix in
ba9f53397ff0b86ad56166c7fc91b4d499f7aefc.

Spotted by Matthias Clasen in
https://bugzilla.gnome.org/show_bug.cgi?id=614099
gtk/gtkfilesystemmodel.c